package com.miage.ldapsec.form;

public class PasswordReset {
    String login, password, passwordConfirm;

    public String getLogin() {
        return login;
    }

    public void setLogin(String login) {
        this.login = login;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
    
    public String getPasswordConfirm() {
        return passwordConfirm;
    }

    public void setPasswordConfirm(String passwordConfirm) {
        this.passwordConfirm = passwordConfirm;
    }
    
    public boolean isSamePassword() {
    	return password.equals(passwordConfirm);
    }
    
    public boolean isEmpty() {
        return login==null || password==null || passwordConfirm==null;
    }
    
    public boolean isComplete() {
        return !login.isEmpty() && !password.isEmpty() && !passwordConfirm.isEmpty();
    }
}
